package net.hn.hnms.biz.safety.trinity.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 智呈物联 nzw
 * @date 2023/4/21
 */
@Data
public class OriginalViolationRecordVo {

    @ApiModelProperty("发生时间")
    private String fssj;

    @ApiModelProperty("班次")
    private String bc;

    @ApiModelProperty("发生地点")
    private String fsdd;

    @ApiModelProperty("违章人所在单位")
    private String wzrszdw;

    @ApiModelProperty("违章人")
    private String wzr;

    @ApiModelProperty("类别")
    private String classify;

    @ApiModelProperty("描述")
    private String baqhwms;

    @ApiModelProperty("等级")
    private String level;

    @ApiModelProperty("考核标准(元)")
    private String khbzy;

    @ApiModelProperty("罚款金额")
    private String fkje;

    @ApiModelProperty("罚款人")
    private String fxr;

    @ApiModelProperty("录入人")
    private String createusername;

    @ApiModelProperty("录入人单位")
    private String createorgname;


    public void setBc(String bc) {
        if (bc==null){
            bc = "";
        }
        switch(bc){
            case "1":
                this.bc = "夜班";
                break;
            case "2":
                this.bc = "早班";
                break;
            case "3":
                this.bc = "中班";
                break;
        }
    }

    public void setClassify(String classify) {
        if (classify==null){
            classify = "";
        }
        switch (classify) {
            case "001":
                this.classify = "通用类";
                break;
            case "002":
                this.classify = "机电类";
                break;
            case "003":
                this.classify = "运输类";
                break;
            case "004":
                this.classify = "车辆运输类";
                break;
            case "005":
                this.classify = "采煤类";
                break;
            case "006":
                this.classify = "掘进类";
                break;
            case "007":
                this.classify = "一通三防类";
                break;
            case "008":
                this.classify = "探放水类";
                break;
            case "009":
                this.classify = "装置类";
                break;
        }
    }

    public void setLevel(String level) {
        if (level==null){
            level = "";
        }
        switch (level) {
            case "001":
                this.level = "一般";
                break;
            case "002":
                this.level = "轻微";
                break;
            case "003":
                this.level = "严重";
                break;
            case "004":
                this.level = "特别严重";
                break;
        }
    }
}
